import axios from 'axios'
axios.defaults.baseURL = 'http://47.94.207.7:3000/api/m'

axios.interceptors.request.use(config => {
    const token = localStorage.getItem('token');
    token && (config.headers.Authorization = token);
    return config;
})

export default axios